/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package gr.anagnosg.general.utils.text;

/**
 *
 * @author anagnosg
 */
public class Word {
    public static int INSERT =1;
    public static int REPLACE =2;
    public static int DELETE =3;
    String text = "";
    
    int startIndex=0;
    int endIndex= 0 ;
    int type = 0;
    int compare=0;
    String oldText = "";

    
    int startIndexOld=0;

    public int getStartIndexOld() {
        return startIndexOld;
    }

    public void setStartIndexOld(int startIndexOld) {
        this.startIndexOld = startIndexOld;
    }

    public int getEndIndexOld() {
        return endIndexOld;
    }

    public void setEndIndexOld(int endIndexOld) {
        this.endIndexOld = endIndexOld;
    }
    int endIndexOld= 0 ;
    
    public String getOldText() {
        return oldText;
    }

    public void setOldText(String oldText) {
        this.oldText = oldText;
    }
    
    public int getCompare() {
        return compare;
    }

    public void setCompare(int compare) {
        this.compare = compare;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }

    public int getType() {
        return type;
    }

    public void setType(int color) {
        this.type = color;
    }
    
    
    
    public void printInfo(){
        System.out.println("text"+text+",oldText"+oldText+",type"+type+",startIndex"+startIndex+",endIndex"+endIndex+",startIndexOld"+startIndexOld+",endIndexOld"+endIndexOld);
    
    }
}
